package com.AJava1710D.bingfabao.countdoen;

import java.util.concurrent.CountDownLatch;

/**
 * 作者: LCG
 * 日期: 2020/6/23 11:21
 * 描述:
 */
public class TestCountdowan {

    public static void main(String[] args) throws InterruptedException {

        CountDownLatch countDownLatch=new CountDownLatch(4);
        TestRun1 testRun1=new TestRun1(countDownLatch);

        Thread thread1=new Thread(testRun1, "文琪");
        thread1.start();

        Thread thread2=new Thread(testRun1, "金平");
        thread2.start();

        Thread thread3=new Thread(testRun1, "李辉");
        thread3.start();

        Thread thread4=new Thread(testRun1, "耿佳欣");
        thread4.start();

        countDownLatch.await();

        System.out.println("========老师：好，我们进行下一个知识点=====");


    }

}
